<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2021/5/12
  Time: 15:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>充值</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/dcy/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/dcy/layui/css/cz.css">
    <style type="text/css">
        #box2{
            margin-left:650px;

        }
        .submit{
            margin-left:20px;
            background-color: grey;
            width: 140px;
            height: 40px;
            font-size: 10px;
            color: white;
            text-align:center;
            position: absolute;
            left: 730px;

        }
        input{
            width: 230px;
            font-size: 15px;
            line-height:20px;
            margin-top: 30px;
            text-align:center;
        }
        form p>span {
            width: 80px;
            display: inline-block;
            text-align: right;
            font-size: 15px;
        }
    </style>
</head>
<%
    //获取项目的根路径
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<body>

<div id="box2">
<form action="<%=basePath%>LibraryServlet?czm=cz" method="post">
    <p><span>ID:</span><input type="text" name="id"  value="${requestScope.id}" readonly></p>
    <p><span>充值的金额:</span><input type="text" name="price"></p>
    <input type="submit" value="充值" class="submit" >
</form>
</div>
</body>
</html>
